﻿@model TJBHJJ.Models.Message
@{
    ViewBag.Title = "在线留言";
    TJBHJJ.Models.Home home = new TJBHJJ.Models.Home();
}
<script type="text/javascript">
    function Onsubmit() {
        //var obj = $("#Name");
        var obj = document.getElementById("Name");
        if (obj.value == "" || obj.value == null) {
            alert('姓名不能为空');
            obj.focus();
            return false;
        }
        obj = document.getElementById("E_mail");
        if (obj.value == "" || obj.value == null) {
            alert('Email不能为空');
            obj.focus();
            return false;
        }
        obj = document.getElementById("QQ");
        if (obj.value == "" || obj.value == null) {
            alert('QQ不能为空');
            obj.focus();
            return false;
        }
        obj = document.getElementById("Title");
        if (obj.value == "" || obj.value == null) {
            alert('标题不能为空');
            obj.focus();
            return false;
        }
        obj = document.getElementById("Content")
        if (obj.value == "" || obj.value == null) {
            alert('留言内容不能为空');
            obj.focus();
            return false;
        }
        $("#contacts-form").submit();
    }

</script>
<body id="page6" onload="new ElementMaxHeight();">
    <!-- header -->
    <div id="header">
        <div class="container">
            <div class="row-1">
                <div class="logo">
                    <a href="#">
                        <img alt="" src="@Url.Content("~/images/logo.jpg")" /></a></div>
                <ul class="top-links">
                    <li><a href="#">
                        <img alt="" src="@Url.Content("~/images/top-icon1.jpg")" /></a></li>
                    <li><a href="#">
                        <img alt="" src="@Url.Content("/images/top-icon2.jpg")" /></a></li>
                    <li><a href="#">
                        <img alt="" src="@Url.Content("/images/top-icon3.jpg")" /></a></li>
                </ul>
            </div>
            <div class="row-2">
                <!-- nav box begin -->
                <div class="nav-box">
                    <div class="left">
                        <div class="right">
                            <ul id="nav">
                                <li><a href="@Url.Action("Index", "Home")" class="first"><em><b>主页</b></em></a></li>
                                <li><a href="@Url.Action("CompanyInfo", "Home")"><em><b>关于我们</b></em></a></li>
                                <li><a href="@Url.Action("Index", "Products")"><em><b>案例介绍</b></em></a></li>
                                <li><a href="@Url.Action("Index", "News")"><em><b>公司动态</b></em></a></li>
                                <li><a href="@Url.Action("Index", "Downloads")"><em><b>资料下载</b></em></a></li>
                                <li><a href="@Url.Action("Add", "Message")" class="last-current"><em><b>在线留言</b></em></a></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <!-- nav box end -->
            </div>
        </div>
    </div>
    <!-- content -->
    <div id="content">
        <div class="container">
            <!-- main-banner-small begin -->
            <div class="main-banner-small">
                <div class="inner">
                    <h1>
                        请留下您的保贵意见！</h1>
                </div>
            </div>
            <!-- main-banner-small end -->
            <div class="section">
                <!-- box begin -->
                <div class="box">
                    <div class="border-top">
                        <div class="border-right">
                            <div class="border-bot">
                                <div class="border-left">
                                    <div class="left-top-corner">
                                        <div class="right-top-corner">
                                            <div class="right-bot-corner">
                                                <div class="left-bot-corner">
                                                    <div class="inner">
                                                        <h2>
                                                            在线留言</h2>
                                                        <p>
                                                            如果对本公司有一些建议或意见，请在下面填写并提交，我们的管理人员会尽快联系您，谢谢！.</p>

                                                        <form id="contacts-form" action="@Url.Action("Add", "Message")" method="post">
                                                        <fieldset>
                                                            <div class="field">
                                                                <label>
                                                                    姓名:</label><input type="text" id="Name" name="Name" value="" /><span style="color: Red">*</span></div>
                                                            <div class="field">
                                                                <label>
                                                                    E-mail:</label><input type="text" id="E_mail" name="E_mail" value="" /><span style="color: Red">*</span></div>
                                                            <div class="field">
                                                                <label>
                                                                    QQ:</label><input type="text" id="QQ" name="QQ" value="" /><span style="color: Red">*</span></div>
                                                            <div class="field">
                                                                <label>
                                                                    标题:</label><input type="text" id="Title" name="Title" value="" /><span style="color: Red">*</span></div>
                                                            <div class="field">
                                                                <label>
                                                                    内容:</label><textarea cols="" rows="" id="Content" name="Content"></textarea><span
                                                                        style="color: Red">*</span></div>
                                                            <div class="alignright">
                                                                <a href="#" class="button" onclick="Onsubmit();"><em><b>提交</b></em></a></div>
                                                        </fieldset>
                                                        </form>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- box end -->
            </div>
            <div class="wrapper">
                <div class="col-1 maxheight">
                    <!-- box begin -->
                    <div class="box maxheight">
                        <div class="border-top maxheight">
                            <div class="border-right maxheight">
                                <div class="border-bot maxheight">
                                    <div class="border-left maxheight">
                                        <div class="left-top-corner maxheight">
                                            <div class="right-top-corner maxheight">
                                                <div class="right-bot-corner maxheight">
                                                    <div class="left-bot-corner maxheight">
                                                        <div class="inner">
                                                            <h2>
                                                                联系方式</h2>
                                                            <ul class="phones-list">
                                                                <li><strong>电话：</strong>@home.WebTel</li>
                                                                <li><strong>QQ:</strong>@home.WebQQ</li>
                                                                <li><strong>主页:</strong>@home.WebUrl</li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- box end -->
                </div>
                <div class="col-2 maxheight">
                    <!-- box begin -->
                    <div class="box maxheight">
                        <div class="border-top maxheight">
                            <div class="border-right maxheight">
                                <div class="border-bot maxheight">
                                    <div class="border-left maxheight">
                                        <div class="left-top-corner maxheight">
                                            <div class="right-top-corner maxheight">
                                                <div class="right-bot-corner maxheight">
                                                    <div class="left-bot-corner maxheight">
                                                        <div class="inner">
                                                            <h2>
                                                                公司地址</h2>
                                                            <ul class="phones-list">
                                                                <li><strong>公司地址：</strong>@home.WebAddress</li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- box end -->
                </div>
                <div class="col-3 maxheight">
                    <!-- box begin -->
                    <div class="box maxheight">
                        <div class="border-top maxheight">
                            <div class="border-right maxheight">
                                <div class="border-bot maxheight">
                                    <div class="border-left maxheight">
                                        <div class="left-top-corner maxheight">
                                            <div class="right-top-corner maxheight">
                                                <div class="right-bot-corner maxheight">
                                                    <div class="left-bot-corner maxheight">
                                                        <div class="inner">
                                                            <h2 class="alt">
                                                                网站关键字</h2>
                                                            <ul class="phones-list">
                                                                <li><strong>关键字：</strong>@home.WebKey</li>
                                                                <li><strong>关键字描述：</strong>@home.WebKeyDes</li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- box end -->
                </div>
            </div>
        </div>
    </div>
    <!-- footer -->
    <div id="footer">
        <div class="container">
            @Html.Partial("Footer")
        </div>
    </div>
</body>
